package sng.modules.model.vo
{
	/**
	 * 
	 * @author leonliu
	 * 建筑物属性
	 * 
	 */	
	[Bindable]
	public class BuildingVO
	{
		public function BuildingVO()
		{
		}
		
		public var populationUpLimit:uint;//建筑的人口上限
		public var populationDownLimit:uint;//建筑的人口下限，即刚建建筑时的初始人口
		public var populationUpTimes:uint;//提升至人口上限需要进行收取操作的次数
		public var countdown:uint;//建筑倒计时收取的时间设定
		public var cols:uint;//建筑倒计时收取的时间设定
		public var rows:uint;//建筑倒计时收取的时间设定
		public var continuingCreate:Boolean = false;//建筑创建时是否能连续操作
		public var bonusRate:Number; //装饰类建筑影响别的建筑的加成值，bonusRate%
		public var width:uint; //图片的宽度
		public var height:uint;//图片的高度 用于判断建筑占据的格子
		
		public var dropCoin:uint;//掉落金币数量
		public var dropGoods:uint;//掉落货物数量
		public var dropExp:uint;//掉落经验数量
		public var needGoods:uint;//供货需求数量
		
		
		/**
		 *建筑ID 
		 */		
		private var m_buildingid:int;
		
		public function get buildingid():uint
		{
			return m_buildingid;
		}
		
		/**
		 * @private
		 */
		public function set buildingid(value:uint):void
		{
			m_buildingid = value;
		}
		
		/**
		 *建筑类型ID 
		 */		
		private var m_buildingTypeId:uint;
		
		public function get buildingTypeId():uint
		{
			return m_buildingTypeId;
		}
		
		/**
		 * @private
		 */
		public function set buildingTypeId(value:uint):void
		{
			m_buildingTypeId = value;
		}
		
		private var m_buildingname:String;
		/**
		 *建筑名称 
		 */
		public function get buildingname():String
		{
			return m_buildingname;
		}

		/**
		 * @private
		 */
		public function set buildingname(value:String):void
		{
			m_buildingname = value;
		}

		
		
		private var m_buildingprice:int;

		/**
		 *价格 
		 */
		public function get buildingprice():int
		{
			return m_buildingprice;
		}

		/**
		 * @private
		 */
		public function set buildingprice(value:int):void
		{
			m_buildingprice = value;
		}
		
		
		private var m_buildingimg:String;

		/**
		 *建筑展示图片地址 
		 */
		public function get buildingimg():String
		{
			return m_buildingimg;
		}

		/**
		 * @private
		 */
		public function set buildingimg(value:String):void
		{
			m_buildingimg = value;
		}
		
		/**
		 *建筑swf地址
		 */		
		private var m_buildingSwfUrl:String;
		
		public function get buildingSwfUrl():String
		{
			return m_buildingSwfUrl;
		}
		
		/**
		 * @private
		 */
		public function set buildingSwfUrl(value:String):void
		{
			m_buildingSwfUrl = value;
		}
		
		private var _createStep:uint;

		/**
		 * 建筑初始的建造步骤
		 */
		public function get createStep():uint
		{
			return _createStep;
		}

		/**
		 * @private
		 */
		public function set createStep(value:uint):void
		{
			_createStep = value;
		}
		
		private var _buildneed:int;

		/**
		 *临时的，建筑需要的资源，暂时用金币代替 
		 */
		public function get buildneed():int
		{
			return _buildneed;
		}

		/**
		 * @private
		 */
		public function set buildneed(value:int):void
		{
			_buildneed = value;
		}


		private var m_stragegy:String;

		/**
		 *策略类 
		 */
		public function get stragegy():String
		{
			return m_stragegy;
		}

		/**
		 * @private
		 */
		public function set stragegy(value:String):void
		{
			m_stragegy = value;
		}
		
		private var m_populationbuildlimit:uint;

		/**
		 *建设此建筑需要的人口数 
		 */
		public function get populationbuildlimit():uint
		{
			return m_populationbuildlimit;
		}

		/**
		 * @private
		 */
		public function set populationbuildlimit(value:uint):void
		{
			m_populationbuildlimit = value;
		}


		private var m_tabid:uint;
		
		/**
		 *显示类型ID 
		 * @return 
		 * 
		 */		
		public function get tabid():uint
		{
			return m_tabid;
		}

		public function set tabid(value:uint):void
		{
			m_tabid = value;
		}


	}
}